package test;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Singer {


    @NotNull
    @Size(min = 2,max=5)
    private String fistName;

    private String lastName;

    @NotNull
    private Genre genre;

    public String getFistName() {
        return fistName;
    }

    public void setFistName(String fistName) {
        this.fistName = fistName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public Genre getGenre() {
        return genre;
    }

    public void setGenre(Genre genre) {
        this.genre = genre;
    }
}
